﻿<?xml version="1.0" encoding="utf-8"?>
<!--

//***************************************************************************
// ***** Script Header *****
//
// Solution:  Solution Accelerator for Business Desktop Deployment
// File:      DeployWiz_Scripts.xml
//
// Purpose:   Deployment Wizard 
//
// Microsoft Solution Version:  4.0.175
// Microsoft Script Version:    4.0.175
// Customer Build Version:      1.0.0
// Customer Script Version:     1.0.0
//
// Microsoft History:
// 2.6.0    KeithGa  03/14/2006  Ported version, new script header
// 3.0.2    MTN      03/30/2006  Re-added the "DeploymentType" pane
// 3.0.24   MTN      05/20/2006  Added new pane for new computer scenario
//                               to ask for state location
// 3.0.78   MTN      10/11/2006  Removed "SelectImage" side effects
// 3.0.123  MTN      12/01/2006  Changed "incorrectly configured" message
// 3.0.128  MTN      12/06/2006  Don't display BitLocker screen if preparing to capture
// 3.0.140  MTN      01/15/2007  Skip BitLocker detail screen if preparing to capture
// 4.0.175  MTN      05/04/2007  Adjust to use task sequences instead of builds
// 4.0.185  MTN      05/17/2007  Don't display user state pane for servers
// 4.0.249  TJ       07/25/2007  Added Validation for Image Capture
// 4.0.302  TPM      08/08/2007  Modified Replace scenario based on replace template
//
// Customer History:
//
// ***** End Header *****
//***************************************************************************

-->
<Wizard>
  <Global>
    <CustomStatement>  document.title =  "LyondellBasell Desktop Imaging System" </CustomStatement>
    <CustomStatement> window.resizeTo 700,500 </CustomStatement>
    <CustomStatement>window.moveTo Window.screen.width/2 - 700/2, Window.screen.height/2 - 500/2</CustomStatement>
    <Initialization>UserGUIWiz_Initialization.vbs</Initialization>
    <Validation>UserGUIWiz_Validation.vbs</Validation>
    <Initialization>UserGUIWiz_CUSTOM_Initialization.vbs</Initialization>
  </Global>
  <!-- ************************************************************** -->
  <!-- ************************************************************** -->
  <Pane id="ConfigurationCount">
    <Body><![CDATA[<h1>Multiple Configurations Exist in MDT Database</h1>
<br/>
<div  align=center style="font-size: larger;">
  <label class=errmsg style="display: inline;" >This means this machine has more than one configuration.</label>
  <br/><label class=errmsg style="display: inline;" > You will be unable to proceed until this is resolved</label>
</div>


         ]]></Body>
    <Condition>UCase(Property("NUMROWS")) &gt; 1</Condition>
    <Initialization>DisableNextButton</Initialization>
  </Pane>
  <Pane id="MultipleSCCMResourceIDs">
    <Body><![CDATA[<h1>Env Var NUMRESOURCES > 1</h1>
<br/>
This means this machine has more than one Record in SCCM
<br/>]]></Body>
    <Condition>UCase(Property("NUMRESOURCES")) &gt; 1</Condition>
    <Initialization>DisableNextButton</Initialization>
  </Pane>
  <Pane id="MultipleTaskSequences">
    <Body><![CDATA[<h1>Env Var NUMTSS > 1</h1>
<br/>
This means this machine has more than one Task Sequence Advertised to it
<br/>]]></Body>
    <Condition>UCase(Property("NumTSs")) &gt; 1</Condition>
    <Initialization>DisableNextButton</Initialization>
  </Pane>
  <Pane id="SelectFromExistingConfigurations">
    <Body><![CDATA[<h1>Please Select Correct Configuration </h1>

<div class=ScrollingDynamicListBox>    
   

 <table id="ConfigList" datasrc="#CONFIGURATIONS" height: 300 width="100%" border=0 cellSpacing=0 language=vbscript onreadystatechange=ReadyInitializeCONFIGURATIONList>
      <tr valign=top class="DynamicListBoxRow"
          onmouseover="javascript:this.className = 'DynamicListBoxRow-over';" 
          onmouseout="javascript:this.className = 'DynamicListBoxRow';" >
          <td class=DynamicListBoxElement width="0px">
            <input type=radio 
                       name=SelectedItem
                       language=vbscript onPropertyChange="ConfigItemChange" />
            <input type=hidden
                      Name=ConfigID datafld="ConfigID" />
          </td>
          
          <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement width="100%">
              <div><Label datafld="ConfigDescription" class="Larger" ></Label></div>
              <div><Label datafld="ConfigComments" dataformatas="HTML">

<label class=errmsg style="display: inline;" >No task sequences are available (CONFIGURATIONS.xml does not exist, is empty, or is inaccessible)</label></Label></div>            
          </td>
    </table>
  </div>

  <input type=hidden id=ConfigIDx  name=ConfigIDx>
      
<xml id="CONFIGURATIONS"></xml>


                  </br>
           <div class=WideEdit align=center>
              <input type=button Name="UpdateConfigButton" value="Tie this machine to the selected configuration" onclick="AssociateRequestWithMachine" />
           </div>           
 ]]></Body>
    <Condition>UCase(Property("PRESTAGED")) = "FALSE"</Condition>
    <Initialization>InitializeCONFIGURATIONList</Initialization>
    <Validation>ValidateCONFIGURATIONList</Validation>
  </Pane>
  <Pane id="OSInstallAuthorized">
    <Body><![CDATA[<h1>This Machine is not Authorized to be Re-Imaged.</h1>


 <div><Label class="Larger" >To Authorize, Click the Authorize button </Label></div>
</br>
    <div class=WideEdit align=center>
     <input type=button Name="AuthorizeMachineButton" value="Authorize" onclick="AuthorizeMachine" />
           </div>           
 
]]></Body>
    <Condition>UCase(Property("AUTHORIZED")) &lt;&gt; "Y" AND UCase(Property("AUTHORIZED")) &lt;&gt; "YES" </Condition>
    <Validation>oEnvironment.Item("AUTHORIZED") = "TRUENOW"</Validation>
  </Pane>
  <Pane id="ExistsInSCCM">
    <Body><![CDATA[<h1>Env Var NUMRESOURCES = 0</h1>
<br/>
This means this machine is not in SCCM
<br/>]]></Body>
    <Condition>UCase(Property("NUMRESOURCES")) = 0</Condition>
    <Initialization>DisableNextButton</Initialization>
  </Pane>
  <Pane id="UserDataRestore">
    <Body><![CDATA[
<H1>Specify whether to restore user data.</H1>
<table>

	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio1" checked value="NONE" language=vbscript onclick=ValidateUserDataRestoreLocation  AccessKey=r>
		</td>
		<td>
			<Label class="Larger" for=UDRadio1 language=vbscript >Do not <u class=larger>r</u>estore user data and settings.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>This is not a replacement computer, so there are no user data and settings to restore.</p>
		</td>
	</tr>

    
	<tr><td colspan=2>&nbsp;</td></tr>
    
	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio2" Value="NETWORK" language=vbscript onclick=ValidateUserDataRestoreLocation  AccessKey=S>
		</td>
		<td>
			<Label class="Larger" for=UDRadio2 language=vbscript ><u class=larger>S</u>pecify a location.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Restore user data and settings from a network location created from a different machine.</div>
			<br>
			<div>L<u>o</u>cation:</div>
			<input type=text id="StatePath" name="StatePath" size=65 disabled language=vbscript AccessKey=O> 
			<input type="button" id="StatePathBrowse" style="display: none;" onclick="javascript:StatePath.value = BrowseForFolder(StatePath.value);" Value="Browse" disabled /><br/>(Full network path to previously saved USMT data files).<br/>
			<div><label class=ErrMsg for=StatePath>* Required (MISSING)</label>  <label class=ErrMsg id=InvalidPath>* Invalid path!</label><br/></div>
		</td>
	</tr>
    
</table>
		]]></Body>
    <Initialization>InitializeUserDataRestoreLocation</Initialization>
    <Validation>ValidateUserDataRestoreLocation</Validation>
  </Pane>
  <Pane id="NoTaskSequenceAdvertised">
    <Body><![CDATA[<h1>Env Var NUMTSS = 0</h1>
<br/>
This means this machinedoes not have a Task Sequence Advertised to it
<br/>]]></Body>
    <Condition>UCase(Property("NUMTSS")) = 0</Condition>
    <Initialization>DisableNextButton</Initialization>
  </Pane>
  <Pane id="Ready">
    <Condition>ucase(Property("SkipSummary")) &lt;&gt; "YES"</Condition>
    <ButtonNext>
      <Label><![CDATA[<button accesskey=G id=buttonNext language=vbscript onclick=ButtonNextClick>Be<U>g</U>in</button>]]></Label>
    </ButtonNext>
    <Body><![CDATA[	
		<H1>Ready to begin.</H1>
		<p>Using the information you provided, the deployment can now begin.</p>

		<p>
		 <input id=MoreInfo src=plusicon.gif type=image onclick="javascript:HideUnHideCmdWindow(optionalWindow1);" />     
		 <label onclick="javascript:MoreInfo.click();" >Details ...</label></br>
		 <span id=optionalWindow1 style="display=none;" class=LightColoredBox>Details Here!</span>
		</p>
      
	]]></Body>
    <Initialization>PrepareFinalScreen</Initialization>
  </Pane>
</Wizard>